package com.example.backend.service;

import com.example.backend.pojo.User;
import com.example.backend.response.LoginResponse;
import com.example.backend.util.Response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

public interface UserService {
    Response<LoginResponse> login(String username, String password);
    Response<User> create(User user);
    Response<Object> exist(String username);
    Response<Object> update(User user);
    Response<User> findUserById(Integer id);
    Response<Object> updateModel(User user);

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class Exist {
        private int exist;
    }
}
